{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title></title>

    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" href="{% static 'maquinas/css/bootstrap.min.css' %}" type="text/css">

    <!-- Custom Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="{% static 'maquinas/font-awesome/css/font-awesome.min.css' %}" type="text/css">

    <!-- Plugin CSS -->
    
	<link rel="stylesheet" href="{% static 'maquinas/css/animate.min.css' %}" type="text/css">

    <!-- Custom CSS -->
 	<link rel="stylesheet" href="{% static 'maquinas/css/creative.css' %}" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work isf you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<style>
	.listitem{
    color: #ffffff;
    font-size: 1.1em;
    font-family: 'Open Sans','Helvetica Neue',Arial,sans-serif;
    list-style-type: none;
	}
</style>
</head>

<body id="page-top" onload="relojFecha()">
    <nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand page-scroll" href="#page-top">Proyecto</a>
                <p id="idReloj" style="color:#ffffff"; width:300px;/>
                <script>

    				function relojFecha(){
					 	var mydate=new Date();var year=mydate.getYear();
					 	if (year < 1000)year+=1900;
					 	var day=mydate.getDay();
					 	var month=mydate.getMonth();
					 	var daym=mydate.getDate();
					 	if (daym<10)daym="0"+daym;
					 	var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
					 	var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto",
					 	                                             "Septiembre","Octubre","Noviembre","Diciembre");
					 	var horas = mydate.getHours();
					 	horas = (horas<10)?"0"+horas:horas;
					 	var minutos = mydate.getMinutes();
					 	minutos = (minutos<10)?"0"+minutos:minutos;
					 	var segundos = mydate.getSeconds();
					 	segundos = (segundos<10)?"0"+segundos:segundos;
					 	document.getElementById("idReloj").innerHTML = "<"+"small><"+"font color='000000' face='Verdana'>"+
					 	                                                dayarray[day]+" "+daym+" de "+montharray[month]+" de "+
					                                                        year+" "+horas+":"+minutos+":"+segundos+"<"+"/font><"+"/small>";
					 	setTimeout('relojFecha()',1000);
					}

                    $(document).ready(function(){
                        $('[data-toggle="tooltip"]').tooltip();   
                    });
							
				</script>	
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            </div>
        <!-- /.container-fluid -->
    </nav>

    <header>
        <div class="header-content">
            <div class="header-content-inner">
                    <h1>{{ "Pcs:" }}</h1><br/>
                    {% if latest_pc_list %}
                        <ul>
                        {% for pc in latest_pc_list %}
                            <li><a class="listitem" href="{% url 'maquinas:detail' pc.id %}" data-toggle="tooltip" data-placement="right" title="Salon {{pc.salon}}">{{ pc.mac }}</a>
                            </li>
                        {% endfor %}
                        </ul>
                    {% else %}
                        <p>No existen Pcs.</p>
                    {% endif %}
                </h1>
                <p></p>
            </div>
        </div>
    </header>

    <!-- jQuery -->
    <script src="{% static 'maquinas/js/jquery.js' %}"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="{% static 'maquinas/js/bootstrap.min.js' %}"></script>

    <!-- Plugin JavaScript -->
    
    <!-- Custom Theme JavaScript -->
    <script src="{% static 'maquinas/js/creative.js' %}"></script>

    <script src="{% static 'maquinas/js/creative.js' %}"></script>

    <script src="{% static 'maquinas/main.js' %}"></script>

</body>

</html>
